VideoRenderMode enum Null safety

视频渲染的缩放模式

Constants

adaptive → const VideoRenderMode

视频帧自适应画布

视频尺寸非等比例缩放,把窗口充满。在此过程中,视频帧的长宽比例可能会发生变化

const VideoRenderMode(2)
fit → const VideoRenderMode

视频帧内容全部显示优先

视频帧等比缩放,直至视频帧能够在视窗上全部显示。如果视频帧长宽比例与视窗不同,视窗上未被视频帧填满区域将被涂黑。
缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长小于等于视窗对应边长。

const VideoRenderMode(1)
hidden → const VideoRenderMode

视窗填满优先

视频帧等比缩放,直至视窗被视频填满。如果视频帧长宽比例与视窗不同,视频帧的多出部分将无法显示。
缩放完成后,视频帧的一边长和视窗的对应边长一致,另一边长大于等于视窗对应边长。

const VideoRenderMode(0)
values → const List<VideoRenderMode>

A constant List of the values in this enum, in order of their declaration.

const List<VideoRenderMode>

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
index → int

The integer index of this enum.

final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
A string representation of this object. [...]
override

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited